#include "Facts.h"

Facts::Facts() {
	setBeginIter();
}
Facts::Facts(const Facts & fak) {
    fakta = fak.fakta;
}

Facts& Facts::operator= (const Facts& fak) {
    fakta = fak.fakta;
	return (*this);
}

Facts::~Facts(){
}

void Facts::setBeginIter() {
    it = fakta.begin();
}

void Facts::setIsRule (bool rule) {
    IsRule = rule;
}

bool Facts::IsRULE(){
	return (IsRule);
}

string Facts::getName () {
    return name;
}

void Facts::setName (string names) {
    name = names;
}

int Facts::getTotalParameter () {
    return totalParameter;
}

void Facts::setTotalParameter (int total) {
    totalParameter = total;
}

bool Facts::isRule() {
	return isRules;
}

void Facts::setRule(bool id) {
	isRules = id;
}

void Facts::addTotalParam () {
	totalParameter++;
}

list<Parameter*> * Facts::getListParam () {
    return (&fakta);
}

Parameter * Facts::getParam () {
	Parameter * dum;
	dum = (*it);
	it++;
	return dum;
}

void Facts::addParameter(string S) {
    fakta.push_back(new Parameter(S));
}
void Facts::addList(ListParam * lissst) {
    fakta.push_back(lissst);
}
